
import VueRouter from 'vue-router';

const routes = [
    {
        path: '/',
        redirect: '/home'
    },
    {
        path: '/home',
        component: () => import('@/views/Home')
    },
    {
        path: '/category',
        component: () => import('@/views/Category')
    },
    {
        path: '/car',
        component: () => import('@/views/Car')
    },
    {
        path: '/mine',
        component: () => import('@/views/Mine')
    }

]

const router = new VueRouter({
    mode: 'history',
    routes
})

export default router